home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / QuickDraw™ GX / Programming Stuff / Sample Code / Graphics Samples / ShapePart Browser ƒ / ShapeAction.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  1.3 KB  |  55 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    ShapeAction.h
  3.  *
  4.  *    Robert Dierkes,  April 26, 1993
  5.  */
  6.  
  7. #include "graphics types.h"
  8.  
  9. typedef struct
  10. {
  11.         gxShape            *pShapes;
  12.         gxShape            boxes;
  13.  
  14.         gxShapePart        partsHit;
  15.         fixed            tolerance;
  16.  
  17.         boolean            showControlPoints,
  18.                         showLocalBounds;
  19.  
  20.         boolean           testNothing;
  21.         boolean            testBounds;
  22.         boolean            testGeometry;
  23.         boolean            testPen;
  24.         boolean            testCornerPoint;
  25.         boolean            testControlPoint;
  26.         boolean            testEdge;
  27.         boolean            testJoin;        /* also testGlyphBounds */
  28.         boolean            testStartCap;    /* also testGlyphFirst  */
  29.         boolean            testEndCap;        /* also testGlyphLast   */
  30.         boolean            testDash;        /* also testSideBearing */
  31.         boolean            testPattern;
  32.         boolean           testAnything;
  33.  
  34.         ControlHandle  hNothing;
  35.         ControlHandle    hBounds;
  36.         ControlHandle    hGeometry;
  37.         ControlHandle    hPen;
  38.         ControlHandle    hCornerPoint;
  39.         ControlHandle    hControlPoint;
  40.         ControlHandle    hEdge;
  41.         ControlHandle    hJoin;            /* also hGlyphBoundsPart */
  42.         ControlHandle    hStartCap;        /* also hGlyphFirstPart  */
  43.         ControlHandle    hEndCap;        /* also hGlyphLastPart   */
  44.         ControlHandle    hDash;            /* also hSideBearingPart */
  45.         ControlHandle    hPattern;
  46.         ControlHandle  hAnything;
  47.  
  48. } GlobalStructure;
  49.  
  50. #define    notOnAnyShape    -1
  51.  
  52. void ShowControlPoints (gxShape *p1stShape, long shapeCount);
  53. void UpdateHitTestWindow (WindowPtr pWindow);
  54. void UpdateShapePartInfo (Point *pQDWhere, GlobalStructure *pG);
  55.